<?php

namespace app\backstage\validate;

use think\Validate;

class UserValidate extends Validate
{
    protected $rule = [
        'uid' => 'require|number|gt:0',
        'userId' => 'require|max:100',
        'type' => 'require|in:0,1,2',
        'table_suffix' => 'require|in:black,white',

    ];

    protected $message = [
    ];

    protected $scene = [
        'changeReviewType' => ['userId', 'type'],
        'cutBlackOrWhite' => ['table_name','type'],
        'refreshUser' => ['uid']
    ];
}